package com.heima.utils.common;

import com.heima.model.wemedia.pojos.WmUser;

/**
 * @Description TODO
 * @Author bo.li
 * @Date 2022/11/10 9:39
 * @Version 1.0
 */
public class WmThreadLocalUtil {

    private static ThreadLocal<WmUser> USER_THREAD_LOCAL = new ThreadLocal<>();

    public static void set(WmUser user){
        USER_THREAD_LOCAL.set(user);
    }


    public static WmUser get(){
        return USER_THREAD_LOCAL.get();
    }


    public static void clear(){
        USER_THREAD_LOCAL.remove();
    }


}